package com.shali.wechat.order.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.shali.wechat.order.client.ProductFeignClient;

import lombok.extern.slf4j.Slf4j;

@RestController
@Slf4j
public class ClientWithFeignController {

	@Autowired
	private ProductFeignClient productClient;
	
	
	@GetMapping("/getFeignMsg")
	public String getMsg() {
		String response = productClient.msg();
		log.info("【response】--->",response);
		return response;
	}
}
